home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Fonts
/
IntegerFaceMetrics.cp
< prev
next >
Wrap
Text File
|
2000-06-23
|
497b
|
26 lines
// IntegerFaceMetrics.cp
#ifndef IntegerFaceMetrics_h
#include "IntegerFaceMetrics.h"
#endif
#ifndef TemporaryPort_h
#include "TemporaryPort.h"
#endif
#ifndef GrafPortObject_h
#include "GrafPortObject.h"
#endif
IntegerFaceMetrics::IntegerFaceMetrics( const Face& face )
{
TemporaryPort port;
port.Port().SetFace( face );
GetFontInfo( this );
}
const IntegerFaceMetrics& IntegerFaceMetrics::Current()
{
static IntegerFaceMetrics metrics;
GetFontInfo( &metrics );
return metrics;
}